
public class ControlStatmentsEx {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		Student abc = new Student("abc");
		abc.name ="abc";
		abc.id =1;
		abc.enrollToXYZClass = false;
		
		Student Yaten = new Student();
		Yaten.name ="Yaten";
		Yaten.id =2;
		Yaten.enrollToXYZClass = true;
		
		
		Student krishna = new Student();
		krishna.name ="Krishna";
		krishna.id =3;
		krishna.enrollToXYZClass = true;
		
		Student sridevi = new Student();
		sridevi.name ="sridevi";
		sridevi.id =4;
		sridevi.enrollToXYZClass = true;
		
		Student srikanth = new Student();
		srikanth.name ="srikanth";
		srikanth.id = 5;
		srikanth.enrollToXYZClass = false;
		  
		//&& - AND 
		// == equality of integers , long .... but not objects 
		if(abc.id == 8)
		{
			//if( 1 == 8) - false
			 
			System.out.println("yes We are looking for ABC");
		}
		else if(Yaten.id == 9)
			
		{
			//if(2 == 2) - true
			
			System.out.println("yes We are looking for Yaten");
		}
		else if(krishna.id == 9)
		{
			//if(3 ==3) - true
		
			System.out.println("yes We are looking for Krishna");
		}
		else if(sridevi.id == 5)
		{
			System.out.println("yes We are looking for Sridevi");
		}
		else
		{
			System.out.println("yes We are looking for Srikanth - He is Default ");
		}

	}

}
